

void setByte(uint32_t address, uint16_t dat) {
  write_data_bus(dat);
  setAddress(address);
  // delayMicroseconds(1);
  delay110ns;
  P_CE = 0;
  P_WE = 0;
  // delayMicroseconds(1);
  delay110ns;
  P_WE = 1;
  P_CE = 1;
  //delayMicroseconds(1);//需要延时等待写入完成
}


// 根据地址读取数据
uint8_t getByte(uint32_t addr) {
  setAddress (addr);
  delay110ns;
  return read_data_bus();
}


